package shizhan.dao.impl;

import shizhan.dao.CalculatorDao;

public class DivideCalculator implements CalculatorDao {
    @Override
    public double calculator(double a, double b) {
        if (b == 0){
            throw new ArithmeticException("被除数不能为0");
        }
        return a/b;
    }
}
